#include "PreCompile.hpp"
#include "GCC/GCCCompilerBackend.hpp"
#include "VC/VCCompilerBackend.hpp"

namespace BuildNG
{
  Glib::RefPtr<CCompilerBackend> CCompilerBackend::get_compiler_backend(const Glib::ustring &name)
  {
    if(name == "gcc")
      return GCCCompilerBackend::create();    
    else if(name == "vc")
      return VCCompilerBackend::create();
    else
      throw Exception("Unknwn C/C++ compiler backend: \"" + name + "\".");
  }
}
